-- GENERATED SPELL FOR [Young Black Ravager] --


function spell0_923(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17257,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_923', 592, 1)
end

function spell1_923(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1753,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_923', 0, 1)
end

function spell2_923(pUnit, Event) --@Furious Howl,Self--
pUnit:FullCastSpellOnTarget(24604,pUnit)
pUnit:RegisterEvent('Sorts_923', 20000, 1)
end

function spell3_923(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_923', 0, 1)
end

function Sorts_923(pUnit, Event)
local choix_sorts_923 = math.random(0, 3)
if choix_sorts_923 == 0 then
pUnit:RegisterEvent('spell0_923', 1, 1)
end
if choix_sorts_923 == 1 then
pUnit:RegisterEvent('spell1_923', 1, 1)
end
if choix_sorts_923 == 2 then
pUnit:RegisterEvent('spell2_923', 1, 1)
end
if choix_sorts_923 == 3 then
pUnit:RegisterEvent('spell3_923', 1, 1)
end
end

function mob923_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_923', math.random(1500, 3000), 1)
end

function mob923_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob923_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob923_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(923, 1, 'mob923_Action')
RegisterUnitEvent(923, 2, 'mob923_Leave')
RegisterUnitEvent(923, 3, 'mob923_Kill')
RegisterUnitEvent(923, 4, 'mob923_Die')
